package edu.uni.dormitory.mapper;

import edu.uni.dormitory.bean.AccomodateApplyApproval;
import edu.uni.dormitory.bean.ExchangeApplyApproval;
import edu.uni.dormitory.bean.ExchangeApplyApprovalExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author 郑伟森
 * @create 2019.05.01
 * @function 映射
 */
public interface ExchangeApplyApprovalMapper {
    int countByExample(ExchangeApplyApprovalExample example);

    int deleteByExample(ExchangeApplyApprovalExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ExchangeApplyApproval record);

    int insertSelective(ExchangeApplyApproval record);

    List<ExchangeApplyApproval> selectByExample(ExchangeApplyApprovalExample example);

    ExchangeApplyApproval selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ExchangeApplyApproval record, @Param("example") ExchangeApplyApprovalExample example);

    int updateByExample(@Param("record") ExchangeApplyApproval record, @Param("example") ExchangeApplyApprovalExample example);

    int updateByPrimaryKeySelective(ExchangeApplyApproval record);

    int updateByPrimaryKey(ExchangeApplyApproval record);

    ExchangeApplyApproval selectLatestByApplyId(Long applyId);
}